package com.jcl.recruit.resume.dao;

import com.jcl.core.db.DatabaseContext;
import com.jcl.recruit.resume.mapper.ResumeEvaluateMapper;
import com.jcl.recruit.resume.model.ResumeEvaluate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;


@Component
public class ResumeEvaluateDao implements ResumeEvaluateMapper {

    @Autowired
    private ResumeEvaluateMapper resumeEvaluateMapper;

    @Override
    public List<ResumeEvaluate> findList(String corpCode, int resumeId) {
        DatabaseContext.setCurrentContext();
        return resumeEvaluateMapper.findList(corpCode, resumeId);
    }

    @Override
    public int add(ResumeEvaluate resumeEvaluate) {
        DatabaseContext.setCurrentContext();
        return resumeEvaluateMapper.add(resumeEvaluate);
    }


}
